/*
 * Copyright 2023, Haiku, Inc. All rights reserved.
 * Distributed under the terms of the MIT License.
 */

#include "AntCalendarApp.h"
#include "AntCalendarWindow.h"

#include <Catalog.h>

#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "AntCalendarApp"


AntCalendarApp::AntCalendarApp()
	:
	BApplication("application/x-vnd.Haiku-AntCalendar")
{
	// Create the main window
	BRect frame(100, 100, 500, 400);
	fWindow = new AntCalendarWindow(frame);
	fWindow->Show();
}


AntCalendarApp::~AntCalendarApp()
{
}


void
AntCalendarApp::AboutRequested()
{
	BAlert* alert = new BAlert(B_TRANSLATE("About AntCalendar"),
		B_TRANSLATE("AntCalendar\n"
		"\twritten by Haiku, Inc.\n"
		"\tCopyright 2023, Haiku, Inc.\n"),
		B_TRANSLATE("OK"));
	alert->Go();
}


int
main()
{
	AntCalendarApp app;
	app.Run();
	return 0;
}